#include "App.h"
#include "config.h"
#include "Buzzer.h"
#include "oled.h"
#include "Light.h"


void task_Buzzer() _task_ TASK_BUZZER{
	P35=1;
	Buzzer_init();
	
  while(1) {
    //OLED_Set_Pos(100,6);
    if(percentage<threshold_humidity) {
      RED=0;
      /*****Buzzer*******/
			Buzzer_beep();
			P35=0;
    } else {
      RED=1;
			P35=1;
    }
    os_wait2(K_TMO, 200);// 10ms = 5ms * 2
  }
}